package com.wrupple.vegetate.domain.exceptions;

public class BussinessLayerException extends CatalogException {
	private static final long serialVersionUID = 4562544351587093952L;
	
	public BussinessLayerException(){
		super();
	}

	public BussinessLayerException(String message, Throwable e, int errorcode) {
		super(message, e, errorcode);
	}
	
	public BussinessLayerException(String message, DataLayerException e){
		super(message,e,e.getErrorCode());
	}

	
	public BussinessLayerException(String string, int code) {
		super(string,code);
	}


	public static class UnauthorizedCatalogActionException extends BussinessLayerException{
		public UnauthorizedCatalogActionException(String message, Throwable e) {
			super(message, e, UNAUTHORIZED);
		}
		public UnauthorizedCatalogActionException(String string) {
			super(string,UNAUTHORIZED);
		}
		private static final long serialVersionUID = -2896395600909096860L;

	}
	
	public static class UnknownCatalogException extends BussinessLayerException{

		private static final long serialVersionUID = 1L;

		public UnknownCatalogException(String message, Exception e) {
			super(message, e,CatalogException.INSUFFICIENT_METADATA);
		}
		
	}
}
